package com.ssy.lingxi.common.response;


import javax.validation.constraints.NotEmpty;
import java.util.List;


public class PageData<T>{
    /**
     * 记录总条数
     */
    @NotEmpty
    private Long totalCount;
    /**
     * 数据体
     */
    private List<T> data;

    public PageData(Long totalCount, List<T> data) {
        this.totalCount = totalCount;
        this.data = data;
    }

    public PageData(){}


    public Long getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Long totalCount) {
        this.totalCount = totalCount;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
